<?php

class CommerceUsers extends Cts_Db_Table_Abstract {
    protected $_name 	= 'commerce_users';
    protected $_primary = 'username';

	function getUserStatus($username) {
		$where = $this->getAdapter()->quoteInto('username = ?', $username);
		$tmp_commerceuser = $this->fetchRow($where);
		if (count($tmp_commerceuser) > 0) {
			return($tmp_commerceuser->status);
		} else {
			return('non-existent');
		}
	}

}
